<%--
  Created by IntelliJ IDEA.
  User: r
  Date: 2021/4/3
  Time: 11:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html;charset=UTF-8;charset=UTF-8"  pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>R论坛登录页</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>

</head>
<body>

<%--<form action="<c:url value="/loginCheck.html"></c:url>" method="post">--%>
<%--    用户名：<input type="text" name="userName"><br>--%>
<%--    密 码：<input type="password" name="password"><br>--%>
<%--    <input type="submit" value="登录">--%>
<%--    <input type="reset" value="重置">--%>
<%--</form>--%>

<div class="container" style="width: 500px;margin-top: 100px;">
    <form action="<c:url value="/loginCheck.html"></c:url>" method="POST">
        <div class="form-group">
            <label for="exampleInputEmail1">Email address</label>
            <input type="text" class="form-control" id="exampleInputEmail1" placeholder="用户名" name="userName">
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">Password</label>
            <input type="password" class="form-control" id="exampleInputPassword1" placeholder="密码" name="password">
        </div>
        <input type="reset" value="重置">
        <button type="submit" class="btn btn-primary btn-block ">登录</button>
    </form>

    <table class="table table-hover">
        <tr>
            <td class="danger">
                <c:if test="${!empty error}">
                    <font color="red"><c:out value="${error}"></c:out></font>
                </c:if>
            </td>
        </tr>

    </table>


</div>
</body>
</html>
